package com.vxdata.dev.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 脱敏任务执行日志
 * </p>
 *
 * @author sunhongyun
 * @since 2024-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DataMaskingTaskLogs对象", description = "脱敏任务执行日志")
public class DataMaskingTaskLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "脱敏任务主键id")
    private Long dataMaskingTaskId;

    @ApiModelProperty(value = "脱敏开始时间")
    private LocalDateTime maskingStartTime;

    @ApiModelProperty(value = "脱敏结束时间")
    private LocalDateTime maskingEndTime;

    @ApiModelProperty(value = "任务关联的表总数")
    private Integer tableTotal;

    @ApiModelProperty(value = "此次执行要脱敏的表数量")
    private Integer maskingTableAmount;

    @ApiModelProperty(value = "脱敏成功的表数量")
    private Integer successTableAmount;

    @ApiModelProperty(value = "脱敏失败的表数量")
    private Integer errorTableAmount;

    @ApiModelProperty(value = "任务失败原因")
    private String taskError;

    @ApiModelProperty(value = "任务状态 (字典: sys_common_status 成功-0, 失败-1)")
    private String taskStatus;

    @ApiModelProperty(value = "Spark yarn应用ID")
    private String applicationId;


}
